'''
Created on 2012-1-11

@author: ajwang
'''
from multiprocessing import Process, Queue
import time
import xmlrpclib
from SimpleXMLRPCServer import SimpleXMLRPCServer

class SeedService(object):
    def __init__(self):
        self.queue = Queue()
    
    def add(self, _url):
        self.queue.put(_url)
        
    def get(self):
        return self.queue.get()
    
    def size(self):
        return self.queue.qsize()
    
    def start(self):
        pass
    
    